
use tauri::{
    api::path,command,
    plugin::{Builder as PluginBuilder, TauriPlugin},
    Runtime,
};




#[tauri::command]
// this will be accessible with `invoke('plugin:datarpc|greet')`.
pub fn greet(name: &str) -> String {
    let sum = 3;
    format!(
        "[tauri-plugin-datarpc] Hello, greet {}, sum={sum}!",
        name
    )
}



#[tauri::command]
// this will be accessible with `invoke('plugin:datarpc|greet_search')`.
pub fn greet_search(name: &str) -> String {
    format!("[tauri-plugin-datarpc] Hello, greet_search {}!", name) 
}